-- CALC_RELIC_WORKER_COST

-- 发掘工/容量升级消耗
return function(id)
    local level = SkyRelicFunctionM.getLevel(id);

    local cost = 0;
    level = level + 1;

    if level <= 5 then
        cost = 100 * level;
    elseif level <= 15 then
        cost = 200 * level - 500;
    elseif level <= 30 then
        cost = 500 * level - 5000;
    elseif level <= 50 then
        cost = 1000 * level - 20000;
    elseif level <= 60 then
        cost = 2000 * level - 70000;
    elseif level <= 80 then
        cost = 2500 * level - 100000;
    else
        cost = 5000 * level - 300000;
    end

    local ret = { [10000] = cost };

    return ret;
end
